<#import "/spring.ftl" as spring />
<html>
<head>
	<link rel="stylesheet" type="text/css" href="<@spring.url "/content_pane.css" />" />					
</head>
<body>

<div id="content">
	<h1>YOUR TIMESLOTS</h1>
	
	<p>The following is the list of timelots that determine your availability for inspections.</p>
	
	<h2>RECURRING TIMESLOTS</h2>
	<ul>
	<#list inspector.scheduleRules as scheduleRule>
		<#if scheduleRule.frequencyType == "DAY_OF_WEEK">
			<li style="margin-bottom: 10px">
				<#include "/inspector/scheduleRule/include-scheduleRuleDetails.ftl" />
				<a href="<@spring.url "/inspector/scheduleRule/editRecurring.html?inspectorId=${inspector.id}&ruleId=${scheduleRule.id}" />" class="formLink">-EDIT-</a>
				<a href="<@spring.url "/inspector/scheduleRule/deleteScheduleRule.html?inspectorId=${inspector.id}&ruleId=${scheduleRule.id}" />" class="formLink">-DELETE-</a>
			</li>
		</#if>
	</#list>
	</ul>
	
	
	<h2>INDIVIDUAL TIMESLOTS</h2>
	<ul>
	<#list inspector.scheduleRules as scheduleRule>
		<#if scheduleRule.frequencyType == "SINGLE_DAY">
		<li  style="margin-bottom: 10px">
			<#include "/inspector/scheduleRule/include-scheduleRuleDetails.ftl" />
			<a href="<@spring.url "/inspector/scheduleRule/editNonRecurring.html?inspectorId=${inspector.id}&ruleId=${scheduleRule.id}" />" class="formLink">-EDIT-</a>
			<a href="<@spring.url "/inspector/scheduleRule/deleteScheduleRule.html?inspectorId=${inspector.id}&ruleId=${scheduleRule.id}" />" class="formLink">-DELETE-</a>
		</li>
		</#if>
	</#list>
	</ul>
	
	
</div>

</body>
</html>
